package edu.sdbi.judge.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface HourlyActivityAnalysisMapper {
    List<Map<String, Object>> getHourlyVisitsByRange(@Param("startDate") String startDate,
                                                     @Param("endDate") String endDate);

    int countVisitByRange(@Param("startTime") Date startTime,
                          @Param("endTime") Date endTime);

}
